﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="EditLocale.aspx.cs" Inherits="Cms.Web.UI.Admin.EditLocale" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="Stylesheet" href="Admin/Css/List.css" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="buttons" runat="server">
    <asp:LinkButton ID="lbSave" runat="server" OnClick="lbSave_Click" CssClass="orangeButton"><span><span><img src="Admin/Img/icons/disk.png" alt="" /><span><cms:LocalizedLiteral ID="llSave" runat="server" /></span></span></span></asp:LinkButton>
    <a href="Admin/Locales.aspx" class="orangeButton"><span><span><img src="Admin/Img/icons/delete.png" alt="" /><span><cms:LocalizedLiteral ID="llCancel" runat="server" /></span></span></span></a>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="body" runat="server">
    <asp:Literal ID="litIcon" runat="server" Visible="false" Text="Admin/Img/Icons/world.png" />
    <table class="editForm">
        <tr>
            <td><cms:LocalizedLiteral ID="llNameInNativeLanguage" runat="server" />:</td>
            <td><asp:TextBox ID="txtNameInNativeLanguage" runat="server" /></td>
        </tr>
        <tr>
            <td><cms:LocalizedLiteral ID="llRegionInNativeLanguage" runat="server" />:</td>
            <td><asp:TextBox ID="txtRegionInNativeLanguage" runat="server" /></td>
        </tr>
        <tr>
            <td><cms:LocalizedLiteral ID="llLanguageNameInNativeLanguage" runat="server" />:</td>
            <td><asp:TextBox ID="txtLanguageNameInNativeLanguage" runat="server" /></td>
        </tr>
        <tr>
            <td><cms:LocalizedLiteral ID="llUrlCode" runat="server" />:</td>
            <td><asp:TextBox ID="txtUrlCode" runat="server" /></td>
        </tr>
        <tr>
            <td><cms:LocalizedLiteral ID="llAliasDomain" runat="server" />:</td>
            <td><asp:TextBox ID="txtAliasDomain" runat="server" /></td>
        </tr>
        <tr>
            <td><cms:LocalizedLiteral ID="llCultureCode" runat="server" />:</td>
            <td><asp:TextBox ID="txtCultureCode" runat="server" /></td>
        </tr>
    </table>
    <asp:Panel ID="pnlTranslations" runat="server" Visible="false">
        <div class="horizontalDivider"></div>
        <h2><cms:LocalizedLiteral ID="llThisLocaleTranslatedToTheOtherLocales" runat="server" /></h2>
        <table class="list">
            <tr>
                <th style="padding-right: 20px;"><cms:LocalizedLiteral ID="llLocaleHeader1" runat="server" /></th>
                <th><cms:LocalizedLiteral ID="llNameTranslationHeader1" runat="server" /></th>
                <th><cms:LocalizedLiteral ID="llRegionTranslationHeader1" runat="server" /></th>
                <th><cms:LocalizedLiteral ID="llLanguageTranslationHeader1" runat="server" /></th>
            </tr>
            <asp:Repeater ID="rpThisLocaleTranslations" runat="server" OnItemDataBound="rpThisLocaleTranslations_ItemDataBound">
                <ItemTemplate>
                    <tr>
                        <td>
                            <asp:Literal ID="litName" runat="server" /> (<asp:Literal ID="litLanguage" runat="server" />)
                            <input type="hidden" id="hidID" runat="server" />
                        </td>
                        <td><asp:TextBox ID="txtName" runat="server" /></td>
                        <td><asp:TextBox ID="txtRegion" runat="server" /></td>
                        <td><asp:TextBox ID="txtLanguage" runat="server" /></td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
        <div class="horizontalDivider"></div>
        <h2><cms:LocalizedLiteral ID="llTheOtherLocalesTranslatedToThisLocale" runat="server" /></h2>
        <table class="list">
            <tr>
                <th style="padding-right: 20px;"><cms:LocalizedLiteral ID="llLocaleHeader2" runat="server" /></th>
                <th><cms:LocalizedLiteral ID="llNameTranslationHeader2" runat="server" /></th>
                <th><cms:LocalizedLiteral ID="llRegionTranslationHeader2" runat="server" /></th>
                <th><cms:LocalizedLiteral ID="llLanguageTranslationHeader2" runat="server" /></th>
            </tr>
            <asp:Repeater ID="rpOtherLocaleTranslations" runat="server" OnItemDataBound="rpOtherLocaleTranslations_ItemDataBound">
                <ItemTemplate>
                    <tr>
                        <td>
                            <asp:Literal ID="litName" runat="server" /> (<asp:Literal ID="litLanguage" runat="server" />)
                            <input type="hidden" id="hidID" runat="server" />
                        </td>
                        <td><asp:TextBox ID="txtName" runat="server" /></td>
                        <td><asp:TextBox ID="txtRegion" runat="server" /></td>
                        <td><asp:TextBox ID="txtLanguage" runat="server" /></td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
    </asp:Panel>
</asp:Content>
